package com.example.exam.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

/**
 * <p>
 * 存储学科信息
 * </p>
 *
 * @author author
 * @since 2024-03-28
 */
@TableName("exam.discipline")
public class Discipline implements Serializable {


    @TableId("`code`")
    private Integer code;

    /**
     * 学科
     */
    private String discipline;


    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getDiscipline() {
        return discipline;
    }

    public void setDiscipline(String discipline) {
        this.discipline = discipline;
    }

    @Override
    public String toString() {
        return "Discipline{" +
                "code=" + code +
                ", discipline=" + discipline +
                "}";
    }
}
